﻿#region Includes
using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
using Microsoft.Xna.Framework.Net;
using Microsoft.Xna.Framework.Storage;
using System.Text;
#endregion

namespace pxt
{
    public class CGameScreen
    {
    #region Members
        List<CScreenElement> m_lElements;
    #endregion
    #region Functions
        public CGameScreen()
        {
            m_lElements = new List<CScreenElement>();
        }

        public void Draw()
        {
            foreach (CScreenElement element in m_lElements)
            {
                element.Draw();
            }
        }
        public void Update(GameTime gt)
        {
            foreach (CScreenElement element in m_lElements)
            {
                element.Update(gt);
            }
        }

        public void Init()
        {
            foreach (CScreenElement element in m_lElements)
            {
                element.Init();
            }
        }

        public void AddElement(CScreenElement ele)
        {
            m_lElements.Add(ele);
        }
    #endregion
    #region Properties

    #endregion
    }
}
